package com.miyuan.wm.service;

import com.miyuan.wm.data.UserInfo;
import com.miyuan.wm.pojo.PermissionEntity;
import com.miyuan.wm.pojo.RoleEntity;
import com.miyuan.wm.pojo.UserEntity;
import com.miyuan.wm.response.BaseResponse;

import java.util.List;

/**
 * @ClassName UserService
 * @Description TODO
 */
public interface UserService {

    /**
     * @Description 根据用户名查询角色列表
     * @param:
     * @return:
     */
    List<RoleEntity> findRoles(String userName);

    /**
     * @Description 根据用户名查询权限列表
     * @param:
     * @return:
     */
    List<PermissionEntity> findPermissions(String userName);

    /**
     * @Description 根据用户名查询用户信息
     * @param:
     * @return:
     */
    UserEntity findUserByUserName(String userName);

    /**
     * @Description 修改密码接口
     * @param:
     * @return:
     */
    BaseResponse<Boolean> updatePassword(UserInfo userInfo, String username, String oldPassWord, String newPassWord, String repeatPassWord);
}
